//package com.woniu108.carService.commons.interceptor;
//
//import com.woniu108.carService.commons.util.WebUtil;
//import feign.RequestInterceptor;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.stereotype.Component;
//
//@Configuration
//public class TokenInterceptor implements RequestInterceptor {
//
//    @Override
//    public void apply(feign.RequestTemplate requestTemplate) {
//        String token = WebUtil.getRequest().getHeader("token");
//        if(token != null) {
//            requestTemplate.header("token", token);
//        }
//    }
//}